﻿using MiniFox.Platform.OAuth2.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.OAuth2
{

    /// <summary>
    /// 未注册异常
    /// </summary>
    public class UnregisteredException : Exception
    {
        ExternalOpenAuthUser _authUser;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="authUser"></param>
        public UnregisteredException(ExternalOpenAuthUser authUser)
        {
            _authUser = authUser;
        }
        /// <summary>
        /// 
        /// </summary>
        public ExternalOpenAuthUser AuthUser
        {
            get
            {
                return _authUser;
            }
        }
    }
}
